<script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/jquery.validate.js"></script>
<script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/jquery.form.js"></script>
<script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/hoverIntent.js"></script>

<script type="text/javascript" src="<?= base_url() ?>assets/js/libs/jquery.numeric.js"></script>
<script type="text/javascript" src="<?= base_url() ?>assets/js/libs/noty/jquery.noty.js"></script>

<script type="text/javascript" src="<?= base_url() ?>assets/js/libs/noty/layouts/bottomLeft.js"></script>

<script type="text/javascript" src="<?= base_url() ?>assets/js/libs/noty/themes/default.js"></script>

<script type="text/javascript" src="<?= base_url(); ?>assets/js/main.js"></script>

<?


//$this->firephp->log($this->router->fetch_class);
//$this->firephp->log($this->router->method);
    switch($this->router->fetch_class())
    {

        case 'pages':

            switch($this->router->method)
            {

                case ($this->router->method == 'view_all' || $this->router->method == 'index'):
                    ?>

                    <?
                    break;

                case ($this->router->method == 'view_edit_page' || $this->router->method == 'view_new_page'):
                    ?>
                    <script src="<?= base_url() ?>assets/js/edit_page.js" type="text/javascript"></script>
                    <?
                    break;
            }

            break;
        case 'articles':

            switch($this->router->method)
            {

                case ($this->router->method == 'view_all' || $this->router->method == 'index'):
                    ?>

                    <?
                    break;

                case ($this->router->method == 'view_edit_article' || $this->router->method == 'view_new_article'):
                    ?>
                    <script src="<?= base_url() ?>assets/js/libs/tinymce/js/tinymce/tinymce.min.js" type="text/javascript"></script>

                    <script src="<?= base_url() ?>assets/js/edit_article.js" type="text/javascript"></script>
                    <?
                    break;
            }

            break;
        case 'galleries':

            switch($this->router->method)
            {



                case ($this->router->method == 'view_all' || $this->router->method == 'index'):
                    ?>

                    <?
                    break;

                case ($this->router->method == 'view_edit_gallery' || $this->router->method == 'view_new_gallery'):
                    ?>
                    <script src="<?= base_url() ?>assets/js/edit_gallery.js" type="text/javascript"></script>
                    <?
                    break;
            
                case ($this->router->method == 'view_upload_picture'):
                    ?>
                    <script src="<?= base_url() ?>assets/js/upload_picture.js" type="text/javascript"></script>
                    <?
                    break;
                    
            }

            break;

        case 'questions':

            switch($this->router->method)
            {

                case ($this->router->method == 'view_all' || $this->router->method == 'index'):

                    break;

                case ($this->router->method == 'view_replay_question'):
                    ?>
                    <script src="<?= base_url() ?>assets/js/libs/tinymce/js/tinymce/tinymce.min.js" type="text/javascript"></script>
                    <script src="<?= base_url() ?>assets/js/replay_question.js" type="text/javascript"></script>
                    <?
                    break;
            }

            break;
    }
?>

<!--[if (gte IE 6)&(lte IE 8)]><script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/selectivizr-min.js"></script><![endif]-->
 
<script src="<?= base_url() ?>assets/js/init.js" type="text/javascript"></script>
